<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>红木大集</title>
    <link rel="stylesheet" type="text/css" href="css/lib/weui.min.css">
    <link rel="stylesheet" type="text/css" href="css/style.css">
    <link rel="stylesheet" type="text/css" href="css/global.css">

</head>

<body>
    <div class="m-container">
        <p></p>
    </div>
    <!-- end footer-buy -->
    <script src="js/lib/zepto.min.js"></script>
    <script src="js/lib/weui.min.js"></script>
    <script>
        function getUrlParam(name) {
            var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
            var r = window.location.search.substr(1).match(reg);
            if (r != null) {
                return decodeURI(r[2]);
            } else {
                return null;
            }
        }
        $(function () {
            $('p').text(getUrlParam('code'));
        });
    </script>
</body>

</html>